From 9b37b1c26c4f4aa46aece198382e24b40ec4cc82 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 11 Jun 1993 16:20:38 +0000 Subject: [PATCH] * xrdb.c (get_user_db): Get the screen-specific database too. --- src/xrdb.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xrdb.c b/src/xrdb.c index 19ca21f9e02..6a769e3aa6c 100644 --- a/src/xrdb.c +++ b/src/xrdb.c @@ -314,6 +314,15 @@ get_user_db (display) db = XrmGetFileDatabase (xdefault); } +#ifdef XlibSpecificationRelease +#if XlibSpecificationRelease >= 5 + /* Get the screen-specific resources too. */ + xdefs = XScreenResourceString (DefaultScreenOfDisplay (display)); + if (xdefs != NULL) + XrmMergeDatabases (XrmGetStringDatabase (xdefs), &db); +#endif +#endif + return db; } -- 2.30.2